package com.zjut.service.impl;

import com.zjut.domain.PaperQuestion;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface PaperQuestionServiceImpl {
    /**
     * 保存
     *
     * @param paperQuestion
     * @return
     */
    boolean save(PaperQuestion paperQuestion);

    /**
     * 修改
     *
     * @param paperQuestion
     * @return
     */
    boolean update(PaperQuestion paperQuestion);

    /**
     * 按id删除
     *
     * @param id
     * @return
     */
    boolean delete(Integer id);

    /**
     * 按id查询
     *
     * @param id
     * @return
     */
    PaperQuestion getById(Integer id);

    /**
     * 查询全部
     *
     * @return
     */
    List<PaperQuestion> getAll();

    List<PaperQuestion> getByQuestionId(Integer id);

    boolean deleteByPaperId(Integer id);

    List<Integer> getQuestionIdsByPaperId(Integer id);
}
